<?php

/**
 * Description of DataObject
 *
 * @author polacseka
 */
class UAL_HTTP_DataObject
{
	public $scheme = 'http';

	public $userinfo = '';

	public $host = '';

	public $port;

	public $path = '';

	public $arguments = array();

	public $folder = '';

	public $fileName = '';

	public $defines = array();

	public function __construct()
	{
		$this->host = $_SERVER['HTTP_HOST'];
		$this->port = (isset($_SERVER['HTTP_PORT'])? (int)$_SERVER['HTTP_PORT'] : NULL);
		$this->userinfo = ''; // ?
		$this->path = $_SERVER['SCRIPT_NAME'];
		$this->arguments = $_REQUEST;
		$dn = dirname($this->path);
		$this->folder = $dn == '/'? $dn : $dn.'/';
		$this->fileName = basename($this->path);
		$this->defines = $_COOKIE;
	}
}

?>